project(basemodule)

file(GLOB_RECURSE base_srcs ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
                            ${ROOT_DIR}/util/src/*.cpp
                            ${ROOT_DIR}/log/src/*.cpp
)

add_library(base SHARED ${base_srcs})
target_link_libraries(base pthread dl)

target_include_directories(base PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
                                       ${ROOT_DIR}/util/include
                                       ${ROOT_DIR}/log/include
)

file(GLOB_RECURSE base_test_reflection_srcs ${CMAKE_CURRENT_SOURCE_DIR}/test/test_reflection.cpp)
add_executable(base_test_reflection ${base_test_reflection_srcs})
target_link_libraries(base_test_reflection base)

file(GLOB_RECURSE base_test_args_solve_srcs ${CMAKE_CURRENT_SOURCE_DIR}/test/test_args_solve.cpp)
add_executable(base_test_args_solve_test ${base_test_args_solve_srcs})
target_link_libraries(base_test_args_solve_test base)

